﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Game.Protocol;

public class TalkHandler
{
    public TalkHandler() {
        DispatchManager.GetInstance().ServerMsgDispatcher.Register(ProtocolType.Talk,ProtocolArea.ClientToSingleClient,ProtocolCommand.TalkSound, SendSoundSingleClient);

    }

    public void SendSoundSingleClient(byte[] buffer) {
        

    }

    public void SendAllClient(byte[] buffer) {


    }
     ~TalkHandler() {
        DispatchManager.GetInstance().ServerMsgDispatcher.Unregister(ProtocolType.Talk, ProtocolArea.ClientToSingleClient, ProtocolCommand.TalkSound, SendSoundSingleClient);
    }
}

